<%@page import="db.dao.*"%>
<%@ page language="java" contentType="text/html;" import="java.util.*" pageEncoding="UTF-8" %>
<%
response.setContentType("text/html;charset=UTF-8");
request.setCharacterEncoding("UTF-8");
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh">

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>教务系统管理界面</title>
		<link href="css/jquery-accordion-menu.css" rel="stylesheet" type="text/css" />
		<link href="css/font-awesome.css" rel="stylesheet" type="text/css" />
		<link href="css/stm.css" rel="stylesheet" type="text/css"/>
		<link href='http://cdn.webfont.youziku.com/webfonts/nomal/104133/46121/59478b3cf629d81a84e7e13e.css' rel='stylesheet' type='text/css' />
		<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,700">
		<style type="text/css">
			* {
				box-sizing: border-box;
				-moz-box-sizing: border-box;
				-webkit-box-sizing: border-box;
			}
			
			body {
				background: #3b424d;
			}
			
			.content {
				width: 260px;
				margin: 20px auto;
			}
			
			.filterinput {
				background-color: rgba(249, 244, 244, 0);
				border-radius: 15px;
				width: 90%;
				height: 30px;
				border: thin solid #FFF;
				text-indent: 0.5em;
				font-weight: bold;
				color: #FFF;
			}
			
			#demo-list a {
				overflow: hidden;
				text-overflow: ellipsis;
				-o-text-overflow: ellipsis;
				white-space: nowrap;
				width: 100%;
			}
		</style>
		<script src="js/jquery-1.11.2.min.js" type="text/javascript"></script>
		<script src="js/jquery-accordion-menu.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(function() {
				//顶部导航切换
				$("#demo-list li").click(function() {
					$("#demo-list li.active").removeClass("active")
					$(this).addClass("active");
				})
			})
		</script>
	</head>
	<body>
		<div class="content" style="float: left ; width: 15%;">
			<div id="jquery-accordion-menu" class="jquery-accordion-menu #313131">
				<div class="jquery-accordion-menu-header" id="form"></div>
				<ul id="demo-list">

					<li class="active">
						<a href="http://www.cqut.edu.cn"><i class="fa fa-home"></i>前往学校首页 </a>
					</li>
					<li>
						<a href="#"><i class="fa fa-glass"></i>教师信息管理 </a>
						<ul class="submenu">
							<li>
								<a href="#" class="d1" id="d1_1">教师入职登记 </a>
							</li>
							<li>
								<a href="#" class="d2" id="d2_1">教师信息查询 </a>
							</li>
							<li>
								<a href="#" class="d3" id="d3_1">修改教师信息 </a>
							</li>
							<li>
								<a href="#" class="d4" id="d4_1">教师授课信息 </a>
							</li>
							<li>
								<a href="#" class="d5" id="d5_1">教师密码修改 </a>
							</li>
						</ul>
					</li>
					<li>
						<a href="#"><i class="fa fa-file-image-o"></i>学生信息管理 </a>
						<ul class="submenu">
							<li>
								<a href="#" class="d6" id="d6_1">学生入学登记 </a>
							</li>
							<li>
								<a href="#" class="d7" id="d7_1">学生信息查询 </a>
							</li>
							<li>
								<a href="#" class="d8" id="d8_1">修改学生信息 </a>
							</li>
							<li>
								<a href="#" class="d9" id="d9_1">查询学生课表 </a>
							</li>
							<li>
								<a href="#" class="d10" id="d10_1">学生密码修改 </a>
							</li>
						</ul>
					</li>
					<li>
						<a href="#"><i class="fa fa-cog"></i>教务信息管理 </a>
						<ul class="submenu">
							<li>
								<a href="#" class="d11" id="d11_1">选课班级安排 </a>
							</li>
							<li>
								<a href="#" class="d12" id="d12_1">教师课程安排 </a>
							</li>
							<li>
								<a href="#" class="d13" id="d13_1">考务信息安排 </a>
							</li>
							<!--<li>
								<a href="#" class="d14" id="d14_1">上课信息调整 </a>
							</li>-->
						</ul>
					</li>
					<li>
						<a href="#"><i class="fa fa-home"></i>院系信息管理 </a>
						<ul class="submenu">
							<li>
								<a href="#" class="d15" id="d15_1">院系信息查询 </a>
							</li>
							<li>
								<a href="#" class="d16" id="d16_1">新增学院 </a>
							</li>
							<li>
								<a href="#" class="d17" id="d17_1">新增专业 </a>
							</li>
							<li>
								<a href="#" class="d18" id="d18_1">新增班级 </a>
							</li>
							<li>
								<a href="#" class="d19" id="d19_1">新增课程 </a>
							</li>
							<li>
								<a href="#" class="d20" id="d20_1">取消学院/专业/班级 </a>
							</li>
							<!-- <li>
								<a href="#" class="d21" id="d21_1">取消班级 </a>
							</li> -->
						</ul>
					</li>
					<li>
						<a href="#"><i class="fa fa-home"></i>系统管理 </a>
						<ul class="submenu">
							<li>
								<a href="#" class="d22" id="d22_1">新添管理员 </a>
							</li>
							<li>
								<a href="#" class="d23" id="d23_1">管理员密码修改 </a>
							</li>
						</ul>
					</li>
					<li>
						<a href="index.jsp" class="d20" id="d20_1"><i class="fa fa-user"></i>注销 </a>
					</li>
				</ul>
				<div class="jquery-accordion-menu-footer">
					教务系统管理界面
				</div>
			</div>
		</div>
		<div class="InfoDiv">
			<div class="d" id="d1_2" title="教师入职登记" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">教师入职登记</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="addTeacher.action" method="post">
						<span class="fontawesome-user head">&nbsp;教师编号*：</span>
						<input type="text" name="tid" value=""/>
						<span class="fontawesome-user head">&nbsp;教师姓名*：</span>
						<input type="text" name="tname" value=""/>
						<span class="fontawesome-user head">&nbsp;教师性别：</span>
						<select name="tsex">
							<option value="">--请选择--</option>
							<option value="女">女</option>
							<option value="男">男</option>
						</select>
						<span class="fontawesome-user head">&nbsp;身份证号*：</span>
						<input name="tiden" type="text" value=""/>
						<span class="fontawesome-user head">&nbsp;入职学院：</span>
						<select name="tdept">
							<option value="">--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
								DeptDAO dDao = new DeptDAO();
								Dept dept = new Dept();
								List<Dept> listdept = dDao.findAll();
								Iterator<Dept> iteratordept = listdept.iterator();
								while (iteratordept.hasNext()) {
									dept = iteratordept.next();
							 %>
							 <option value="<%=dept.getDeptid() %>"><%=dept.getDeptname() %></option>
							 <%} %>
						</select>
						<input type="submit" value="确定" name="addTeacher"/>
					</form>	
				</div>
			</div>
			<div class="d" id="d2_2" title="教师信息查询" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">教师信息查询</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="searchTeacher.action" method="post">
						<span class="fontawesome-user head">&nbsp;查询方式：</span>
						<select name="teacherOption">
							<option value="">--请选择--</option>
							<option value="id">按教师编号查询</option>
							<option value="name">按教师姓名查询</option>
							<option value="dept">按所属学院查询</option>
							<option value="all">查询全部教师</option>
						</select>
						<span class="fontawesome-user head">&nbsp;输入条件：</span>
						<input type="text" name="property">
						<input type="submit" value="查询" name="searchteachers">
<!--						<span class="fontawesome-user head">&nbsp;教师姓名：</span>
						<input type="text" readonly="true" name="tname">
 						<span class="fontawesome-user head">&nbsp;教师性别：</span>
						<input type="text" readonly="true" name="tsex">
						<br />
						<span class="fontawesome-user head">&nbsp;身份证号：</span>
						<input type="text" readonly="true" name="tiden">
						<br />
						<span class="fontawesome-user head">&nbsp;入职学院：</span>
						<input type="text" readonly="true" name="tdept"> -->
					</form>	
				</div>
			</div>
			<div class="d" id="d3_2" title="修改教师信息" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">修改教师信息</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="updateTeacher.action" method="post">
						<span class="fontawesome-user head">&nbsp;教师编号*：</span>
						<input type="text" name="tid" value=""/><br>
						<span class="fontawesome-user head">&nbsp;教师姓名：</span>
						<input type="text" name="tname" value=""/>
						<span class="fontawesome-user head">&nbsp;教师性别：</span>
						<select name="tsex">
							<option value="">--请选择--</option>
							<option value="女">女</option>
							<option value="男">男</option>
						</select>
						<br />
						<span class="fontawesome-user head">&nbsp;身份证号：</span>
						<input type="text" name="tiden" value=""/>
						<br />
						<span class="fontawesome-user head">&nbsp;入职学院：</span>
						<%-- <select name="tdept">
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
								dDao = new DeptDAO();
								dept = new Dept();
								listdept = dDao.findAll();
								iteratordept = listdept.iterator();
								while (iteratordept.hasNext()) {
									dept = iteratordept.next();
							 %>
							 <option value="<%=dept.getDeptid() %>"><%=dept.getDeptname() %></option>
							 <%} %>
						</select> --%>
						<input type="text" name="tdept" value=""/>
						<input type="submit" value="修改" name="updateTeacher"/>
					</form>	
				</div>
			</div>
			<div class="d" id="d4_2" title="教师授课信息" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">教师授课信息</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="searchTeaCourse.action" method="post">
						<span class="fontawesome-user head">&nbsp;查询方式：</span>
						<select name="teacourseOption">
							<option value="">--请选择--</option>
							<option value="courseid">按课程编号查询</option>
							<option value="coursename">按课程名称查询</option>
							<option value="teacherid">按教师编号查询</option>
							<option value="teachername">按教师名称查询</option>
						</select>
						<span class="fontawesome-user head">&nbsp;输入条件：</span>
						<input type="text" name="property">
						<input type="submit" value="查询" name="searchTeaCourse">
						<!-- <span class="fontawesome-user head">&nbsp;教师姓名：</span>
						<input type="text">
						<span class="fontawesome-user head">&nbsp;授课课程：</span>
						<select>
							<option>--请选择--</option>
							利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库
						</select>
						<span class="fontawesome-user head">&nbsp;授课班级：</span>
						<select>
							<option>--请选择--</option>
							利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库
						</select>
						<span class="fontawesome-user head">&nbsp;授课地点：</span>
						<input type="text" /> -->
					</form>	
				</div>
			</div>
			<div class="d" id="d5_2" title="教师密码修改" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">教师密码修改</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="updateTeacherPwd.action" method="post">
						<span class="fontawesome-user head">&nbsp;教师编号*：</span>
						<input type="text" name="tid" value=""/>
<!-- 						<span class="fontawesome-user head">&nbsp;教师姓名：</span>
						<input type="text" id "pass"> -->
						<span class="fontawesome-user head">&nbsp;输入密码：</span>
						<input type="password" name="pwd1" value=""/>
						<br />
						<span class="fontawesome-user head">&nbsp;确认密码：</span>
						<input type="password" name="pwd2" value=""/>
						<input type="submit" value="确定" name="updateTeacherPwd"/>
					</form>	
				</div>
			</div>
			<div class="d" id="d6_2" title="学生入学登记" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">学生入学登记</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="addStudent.action" method="post">
						<span class="fontawesome-user head">&nbsp;学生学号*：</span>
						<input type="text" name="sid" value=""/><br>
						<span class="fontawesome-user head">&nbsp;学生姓名*：</span>
						<input type="text" name="sname" value=""/>
						<span class="fontawesome-user head">&nbsp;学生性别：</span>
						<select name="ssex">
							<option  value="">--请选择--</option>
							<option value="女">女</option>
							<option value="男">男</option>
						</select>
						<br />
						<span class="fontawesome-user head">&nbsp;身份证号*：</span>
						<input type="text" name="siden" value=""/>
						<br />
						<span class="fontawesome-user head">&nbsp;入学学院：</span>
						<%-- <select name="sdept1">
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
								dDao = new DeptDAO();
								dept = new Dept();
								listdept = dDao.findAll();
								iteratordept = listdept.iterator();
								while (iteratordept.hasNext()) {
									dept = iteratordept.next();
							 %>
							 <option value="<%=dept.getDeptid() %>"><%=dept.getDeptname() %></option>
							 <%} %>
						</select> --%>
						<input type="text" name="sdept1" value=""/>
						<span class="fontawesome-user head">&nbsp;入学专业：</span>
						<%-- <select name="smajor1">
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
							if(request.getParameter("sdept1")!=null){
								MajorDAO mDao = new MajorDAO();
								Major major = new Major();
								String id = "";
								id = request.getParameter("sdept1");
								dept = dDao.findById(id);
								Set<Major> setmajor = dept.getMajors();
								Iterator<Major> iteratormajor = setmajor.iterator();
								while(iteratormajor.hasNext()) {
									major = iteratormajor.next();
							 %>
							 <option value="<%=major.getMajorid() %>"><%=major.getMajorname() %></option>
							 <%}} %>
						</select> --%>
						<input type="text" name="smajor1" value=""/>
						<span class="fontawesome-user head">&nbsp;入学班级：</span>
						<%-- <select name="sclass">
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
							if(request.getParameter("smajor1")!=null){
								ClassesDAO cDao = new ClassesDAO();
								Classes classes = new Classes();
								String id = request.getParameter("smajor1");
								MajorDAO mDao = new MajorDAO();
								Major major = mDao.findById(id);
								Set<Classes> setclasses = major.getClasseses();
								Iterator<Classes> iteratorclasses = setclasses.iterator();
								while(iteratorclasses.hasNext()){
									classes = iteratorclasses.next();
							 %>
							 <option value="<%=classes.getClassid() %>"><%=classes.getClassid() %></option>
							 <%}} %>
						</select> --%>
						<input type="text" name="sclass" value=""/>
						<span class="fontawesome-user head">&nbsp;学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;制：</span>
						<select name="slen">
							<option value="">--请选择--</option>
							<option value="3">3年</option>
							<option value="4">4年</option>
							<option value="5">5年</option>
							<option value="6">6年</option>
							<option value="6">7年</option>
							<option value="7">8年</option>
						</select>
						<input type="submit" value="确定" name="addStudent"/>
					</form>	
				</div>
			</div>
			<div class="d" id="d7_2" title="学生信息查询" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">学生信息查询</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="searchStudent.action" method="post">
						<span class="fontawesome-user head">&nbsp;查询方式：</span>
						<select name="studentOption">
							<option value="">--请选择--</option>
							<option value="id">按学生编号查询</option>
							<option value="name">按学生姓名查询</option>
							<option value="dept">按所属学院查询</option>
							<option value="major">按所属专业查询</option>
							<option value="all">查询全部学生信息</option>
						</select>
						<span class="fontawesome-user head">&nbsp;输入条件：</span>
						<input type="text" name="property"/>
						<input type="submit" value="查询" name="searchStudent"/>
						<!-- <span class="fontawesome-user head">&nbsp;学生姓名：</span>
						<input type="text">
						<span class="fontawesome-user head">&nbsp;学生性别：</span>
						<input type="text">
						<br />
						<span class="fontawesome-user head">&nbsp;身份证号：</span>
						<input type="text"/>
						<br />
						<span class="fontawesome-user head">&nbsp;入学学院：</span>
						<input type="text">
						<span class="fontawesome-user head">&nbsp;入学班级：</span>
						<input type="text">
						<span class="fontawesome-user head">&nbsp;学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;制：</span>
						<input type="text"> -->
					</form>	
				</div>
			</div>
			<div class="d" id="d8_2" title="修改学生信息" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">修改学生信息</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="updateStudent.action" method="post">
						<span class="fontawesome-user head">&nbsp;学生学号*：</span>
						<input type="text" name="sid" value="">
						<span class="fontawesome-user head">&nbsp;学生姓名：</span>
						<input type="text" name="sname" value="">
						<span class="fontawesome-user head">&nbsp;学生性别：</span>
						<select name="ssex">
							<option value="">--请选择--</option>
							<option value="女">女</option>
							<option value="男">男</option>
						</select>
						<br />
						<span class="fontawesome-user head">&nbsp;身份证号：</span>
						<input type="text" name="siden" value=""/>
						<br />
						<span class="fontawesome-user head">&nbsp;所属学院：</span>
						<%-- <select name="sdept2">
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
								dDao = new DeptDAO();
								dept = new Dept();
								listdept = dDao.findAll();
								iteratordept = listdept.iterator();
								while (iteratordept.hasNext()) {
									dept = iteratordept.next();
							 %>
							 <option value="<%=dept.getDeptid() %>"><%=dept.getDeptname() %></option>
							 <%} %>
						</select> --%>
						<input type="text" name="sdept2" value=""/>
						<span class="fontawesome-user head">&nbsp;所属专业：</span>
						<%-- <select name="smajor2">
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
							if(request.getParameter("sdept2")!=null){
								MajorDAO mDao = new MajorDAO();
								Major major = new Major();
								String id = request.getParameter("sdept2");
								dept = dDao.findById(id);
								Set<Major> setmajor = dept.getMajors();
								Iterator<Major> iteratormajor = setmajor.iterator();
								while(iteratormajor.hasNext()) {
									major = iteratormajor.next();
							 %>
							 <option value="<%=major.getMajorid() %>"><%=major.getMajorname() %></option>
							 <%}} %>
						</select> --%>
						<input type="text" name="smajor2" value=""/>
						<span class="fontawesome-user head">&nbsp;所属班级：</span>
						<%-- <select name="sclass">
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
							if(request.getParameter("smajor2")!=null){
								ClassesDAO cDao = new ClassesDAO();
								Classes classes = new Classes();
								String id = request.getParameter("smajor2");
								MajorDAO mDao = new MajorDAO();
								Major major = mDao.findById(id);
								Set<Classes> setclasses = major.getClasseses();
								Iterator<Classes> iteratorclasses = setclasses.iterator();
								while(iteratorclasses.hasNext()){
									classes = iteratorclasses.next();
							 %>
							 <option value="<%=classes.getClassid() %>"><%=classes.getClassid() %></option>
							 <%}} %>
						</select> --%>
						<input type="text" name="sclass" value=""/>
						<span class="fontawesome-user head">&nbsp;学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;制：</span>
						<select name="slen">
							<option value="">--请选择--</option>
							<option value="3">3年</option>
							<option value="4">4年</option>
							<option value="5">5年</option>
							<option value="6">6年</option>
							<option value="7">7年</option>
							<option value="8">8年</option>
						</select>
						<input type="submit" value="修改" name="updateStudent"/>
					</form>
				</div>
			</div>
			<div class="d" id="d9_2" title="学生课表查询" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">学生课表查询</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="searchStuCourse.action" method="post">
						<span class="fontawesome-user head">&nbsp;查询方式：</span>
						<select name="stucourseOption">
							<option value="">--请选择--</option>
							<option value="stuid">按学生编号查询</option>
							<option value="stuname">按学生姓名查询</option>
						</select>
						<span class="fontawesome-user head">&nbsp;输入条件：</span>
						<input type="text" name="property"/>
						<input type="submit" value="查询" name="searchStuCourse"/>
						<!-- <span class="fontawesome-user head">&nbsp;学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;院：</span>
						<input type="text">
						<span class="fontawesome-user head">&nbsp;班&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;级：</span>
						<input type="text">
						<span class="fontawesome-user head">&nbsp;课程名称：</span>
						<select>
							<option>--请选择--</option>
							利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库
						</select>
						<span class="fontawesome-user head">&nbsp;授课教师：</span>
						<input type="text"/>
						<span class="fontawesome-user head">&nbsp;授课地点：</span>
						<input type="text"/> -->
					</form>	
				</div>
			</div>
			<div class="d" id="d10_2" title="学生密码修改" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">学生密码修改</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="updateStudentPwd.action" method="post">
						<span class="fontawesome-user head">&nbsp;学生编号*：</span>
						<input type="text" name="sid" value=""/><br>
<!-- 						<span class="fontawesome-user head">&nbsp;学生姓名：</span>
						<input type="text" id "pass"> -->
						<span class="fontawesome-user head">&nbsp;输入密码：</span>
						<input type="password" name="pwd1" value=""/>
						<br />
						<span class="fontawesome-user head">&nbsp;确认密码：</span>
						<input type="password" name="pwd2" value=""/>
						<input type="submit" value="确定" name="updateStudentPwd">
					</form>	
				</div>
			</div>
			<div class="d" id="d11_2" title="选课班级安排" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">选课班级安排</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="addCourClass.action" method="post">
						<span class="fontawesome-user head">&nbsp;课程编号*：</span>
						<%-- <select name="cid1">
							<option>--请选择--</option>
							<%
								String name = "";
								CourseDAO cDao2 = new CourseDAO();
								Course course = new Course();
								List<Course> listcourse = cDao2.findAll();
								Iterator<Course> iteratorcourse = listcourse.iterator();
								while(iteratorcourse.hasNext()) {
									course = iteratorcourse.next();
							 %>
							 <option value="<%=course.getCourseid() %>"><%=course.getCourseid() %></option>
							 <%}
							 if(request.getParameter("cid1")!=null){
							 	String id = request.getParameter("cid1");
							 	name = cDao2.findById(id).getCoursename(); 
							 }%>
						</select> --%>
						<input type="text" name="cid1" value=""/>
<%-- 						<span class="fontawesome-user head">&nbsp;课程名称：</span>
						<input type="text" readonly="readonly" value="<%=name %>"> --%>
						<span class="fontawesome-user head">&nbsp;教师编号*：</span>
						<%-- <select name="tid1">
							<option>--请选择--</option>
							<%
							if(request.getParameter("cid1")!=null){
								TeaCourseDAO tcDao = new TeaCourseDAO();
								TeaCourse teaCourse = new TeaCourse();
								String id = request.getParameter("cid1");
								List<TeaCourse> listteacourse = tcDao.findByProperty("id.courseid", id);
								Iterator<TeaCourse> iteratorteacourse = listteacourse.iterator();
								while(iteratorteacourse.hasNext()) {
									teaCourse = iteratorteacourse.next();
							%>
							<option value="<%=teaCourse.getId().getTeaid() %>"><%=teaCourse.getTeaname() %></option>
							<%}}
								String id="";
								TeaCourseDAO tcDao = new TeaCourseDAO();
								TeaCourseId teaCourseId = new TeaCourseId();
								if(request.getParameter("cid1")!=null){
									id = request.getParameter("cid1");
									teaCourseId.setCourseid(id);
								}
								if(request.getParameter("tid1")!=null){
								id = request.getParameter("tid1");
								teaCourseId.setTeaid(id);
								name = tcDao.findById(teaCourseId).getTeaname();
							}%>
						</select> --%>
						<input type="text" name="tid1" value=""/>
<%-- 						<span class="fontawesome-user head">&nbsp;教师姓名：</span>
						<input type="text" readonly="readonly" value="<%=name %>"/> --%>
						<span class="fontawesome-user head">&nbsp;上课地点：</span>
						<input type="text" name="place" value=""/>
						<span class="fontawesome-user head">&nbsp;班级容量：</span>
						<input type="text" name="stunum" value=""/>
						<input type="submit" value="确定" name="addCourClass">
					</form>	
				</div>
			</div>
			<div class="d" id="d12_2" title="教师课程安排" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">教师课程安排</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="addTeaCourse.action" method="post">
						<span class="fontawesome-user head">&nbsp;教师编号*：</span>
						<%-- <select name="tid2">
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
								TeacherDAO tDao = new TeacherDAO();
								Teacher teacher = new Teacher();
								List<Teacher> listteacher = tDao.findAll();
								Iterator<Teacher> iteratorteacher = listteacher.iterator();
								while(iteratorteacher.hasNext()) {
									teacher = iteratorteacher.next();
							 %>
							 <option value="<%=teacher.getTeaid() %>"><%=teacher.getTeaid() %></option>
							 <%}
							 if(request.getParameter("tid2")!=null){
							 	 id = request.getParameter("tid2");
							 	 name = tDao.findById(id).getTeaname();
							 }%>
						</select> --%>
						<input type="text" name="tid2" value=""/>
						<%-- <span class="fontawesome-user head">&nbsp;教师姓名：</span>
						<input type="text" name="tname" readonly="readonly" value="<%=name %>"/> --%>
						<span class="fontawesome-user head">&nbsp;课程编号*：</span>
						<%-- <select name="cid2">
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库 -->
							<%
								listcourse = cDao2.findAll();
								iteratorcourse = listcourse.iterator();
								while(iteratorcourse.hasNext()) {
									course = iteratorcourse.next();
							 %>
							 <option value="<%=course.getCourseid() %>"><%=course.getCourseid() %></option>
							 <%}
							 if(request.getParameter("cid2")!=null){
							 	id = request.getParameter("cid2");
							 	name = cDao2.findById(id).getCoursename(); 
							 }%>
						</select> --%>
						<input type="text" name="cid2" value=""/>
						<%-- <span class="fontawesome-user head">&nbsp;课程名称：</span>
						<input type="text" name="cname" readonly="readonly" value="<%=name %>"/> --%>
						<input type="submit" value="确定" name="addTeaCourse">
					</form>	
				</div>
			</div>
			<div class="d" id="d13_2" title="考务信息安排" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">考务信息安排</h1>
				</div>
				<hr>
			</div>
			<!--<div class="d" id="d14_2" title="上课信息调整" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">上课信息调整</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form>
						<span class="fontawesome-user head">&nbsp;教师编号：</span>
						<input type="text" id="user"><br>
						<span class="fontawesome-user head">&nbsp;教师姓名：</span>
						<input type="text" id "pass">
						<span class="fontawesome-user head">&nbsp;教师性别：</span>
						<select >
							<option>--请选择--</option>
							<option value="f">女</option>
							<option value="m">男</option>
						</select>
						<br />
						<span class="fontawesome-user head">&nbsp;身份证号：</span>
						<input type="text"/>
						<br />
						<span class="fontawesome-user head">&nbsp;入职学院：</span>
						<select>
							<option>--请选择--</option>
							<!-- 利用数据库获取学院名，保存之后使用数据库获取学院代号存储进相关数据库
						</select>
						<input type="submit" value="确定">
					</form>	
				</div>
			</div>-->
			<div class="d" id="d15_2" title="院系信息查询" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">院系信息查询</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="searchDept.action" method="post">
						<span class="fontawesome-user head">&nbsp;查询方式：</span>
						<select name="deptOption">
							<option value="">--请选择--</option>
							<option value="id">按学院编号查询</option>
							<option value="name">按学院名称查询</option>
							<option value="all">查询全部学院</option>
						</select>
<!-- 						<span class="fontawesome-user head">&nbsp;学院名称：</span>
						<input type="text"/>
						<span class="fontawesome-user head">&nbsp;专业编号：</span>
						<select >
							<option>--请选择--</option>
							
						</select>
						<br />
						<span class="fontawesome-user head">&nbsp;专业名称：</span> -->
						<span class="fontawesome-user head">&nbsp;输入条件：</span>
						<input type="text" name="property"/>
						
						<input type="submit" value="确定" name="searchDept"/>
					</form>	
				</div>
			</div>
			<div class="d" id="d16_2" title="新增学院" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">新增学院</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="addDept.action" method="post">
						<span class="fontawesome-user head">&nbsp;新学院编号*：</span>
						<input type="text" name="did" value=""/><br>
						<span class="fontawesome-user head">&nbsp;新学院名称*：</span>
						<input type="text" name="dname" value=""/>
						<input type="submit" value="确定" name="addDept">
					</form>	
				</div>
			</div>
			<div class="d" id="d17_2" title="新增专业" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">新增专业</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="addMajor.action" method="post">
						<span class="fontawesome-user head">&nbsp;新专业编号*：</span>
						<input type="text" name="mid" value=""/><br>
						<span class="fontawesome-user head">&nbsp;新专业名称*：</span>
						<input type="text" name="mname" value=""/>
						<span class="fontawesome-user head">&nbsp;所属学院：</span>
						<select name="did">
							<option value="">--请选择--</option>
							<%
								listdept = dDao.findAll();
								iteratordept = listdept.iterator();
								while(iteratordept.hasNext()){
									dept = iteratordept.next();
							 %>
							 <option value="<%=dept.getDeptid() %>"><%=dept.getDeptname() %></option>
							 <%} %>
						</select>
						<input type="submit" value="确定" name="addMajor">
					</form>	
				</div>
			</div>
			<div class="d" id="d18_2" title="新增班级" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">新增班级</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="addClass.action" method="post">
						<span class="fontawesome-user head">&nbsp;班级编号*：</span>
						<input type="text" name="cid"/><br>
						<span class="fontawesome-user head">&nbsp;班级名称：</span>
						<input type="text" name="cname"/>
						<span class="fontawesome-user head">&nbsp;所属学院：</span>
<%-- 						<select name="did">
							<option>--请选择--</option>
							<%
							listdept = dDao.findAll();
							iteratordept = listdept.iterator();
							while(iteratordept.hasNext()) {
								dept = iteratordept.next();
							 %>
							 <option value="<%=dept.getDeptid() %>"><%=dept.getDeptname() %></option>
							 <%} %>
						</select> --%>
						<input type="text" name="did"/>
						<span class="fontawesome-user head">&nbsp;所属专业：</span>
						<%-- <select name="mid">
							<option>--请选择--</option>
							<%
							Set<Major> setmajor = new HashSet();
							if(request.getParameter("did")!=null){
								id = request.getParameter("did");
								setmajor = dDao.findById(id).getMajors();
							}
								Iterator<Major> iteratormajor = setmajor.iterator();
								while(iteratormajor.hasNext()) {
									Major major = iteratormajor.next();
							 %>
							 <option value="<%=major.getMajorid() %>"><%=major.getMajorname() %></option>
							<%} %>
						</select> --%>
						<input type="text" name="mid"/>
						<input type="submit" value="确定" name="addClass">
					</form>	
				</div>
			</div>
			<div class="d" id="d19_2" title="新增课程" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">新增课程</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="addCourse.action" method="post">
						<span class="fontawesome-user head">&nbsp;课程编号*：</span>
						<input type="text" name="cid" value="">
						<span class="fontawesome-user head">&nbsp;课程名称*：</span>
						<input type="text" name="cname" value="">
						<span class="fontawesome-user head">&nbsp;课程学分*：</span>
						<input type="text" name="credit" value="">
						<span class="fontawesome-user head">&nbsp;考核方式：</span>
						<input type="text" name="examination" value="">
						<span class="fontawesome-user head">&nbsp;课程性质：</span>
						<input type="text" name="nature" value="">
						<input type="submit" value="确定" name="addCourse">
					</form>	
				</div>
			</div>
			<div class="d" id="d20_2" title="取消学院/专业/班级" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">取消学院/专业/班级</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="deleteCMD.action" method="post">
						<span class="fontawesome-user head">&nbsp;取消类型*：</span>
						<select name="deleteOption">
							<option value="">--请选择--</option>
							<option value="dept">取消学院</option>
							<option value="major">取消专业</option>
							<option value="class">取消班级</option>
						</select>
						<span class="fontawesome-user head">&nbsp;编号*：</span>
						<input type="text" name="id" value="">
						<input type="submit" value="确定" name="deleteCMD">
					</form>	
				</div>
			</div>
			<!-- <div class="d" id="d21_2" title="取消班级" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">取消班级</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="deleteClass.action" method="post">
						<span class="fontawesome-user head">&nbsp;班级编号：</span>
						<input type="text" id="user"><br>
						<span class="fontawesome-user head">&nbsp;班级名称：</span>
						<input type="text" id "pass">
						<span class="fontawesome-user head">&nbsp;专业编号：</span>
						<select >
							<option>--请选择--</option>
							
						</select>
						<span class="fontawesome-user head">&nbsp;院系编号：</span>
						<select >
							<option>--请选择--</option>
							
						</select>
						<input type="submit" value="确定" name="deleteClass">
					</form>	
				</div>
			</div> -->
			<div class="d" id="d22_2" title="新添管理员" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">新添管理员</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="addManage.action" method="post">
						<span class="fontawesome-user head">&nbsp;账&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号：</span>
						<input type="password" value=""><br>
						<span class="fontawesome-user head">&nbsp;密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</span>
						<input type="password" value="">
						<span class="fontawesome-user head">&nbsp;确认密码：</span>
						<input type="password" value="">
						<input type="submit" value="确定" name="addManage">
					</form>	
				</div>
			</div>
			<div class="d" id="d23_2" title="管理员密码修改" align="center">
				<div>
					<h1 class="cssb64a12ada196c5" style="font-size: 300%;  color: white;  padding-top: 20px; margin-top: 20px;">管理员密码修改</h1>
				</div>
				<hr>
				<div style="width: 50%; min-width: 400px;">
					<form action="updateManPwd.action" method="post">
						<span class="fontawesome-user head">&nbsp;原&nbsp;&nbsp;&nbsp;密&nbsp;&nbsp;&nbsp;码：</span>
						<input type="password" value="">
						<span class="fontawesome-user head">&nbsp;密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码：</span>
						<input type="password" value="">
						<span class="fontawesome-user head">&nbsp;确认密码：</span>
						<input type="password" value="">
						<input type="submit" value="确定" name="updateManPwd">
					</form>	
				</div>
			</div>
		</div>

		<script type="text/javascript">
			(function($) {
				$.expr[":"].Contains = function(a, i, m) {
					return(a.textContent || a.innerText || "").toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
				};

				function filterList(header, list) {
					//@header 头部元素
					//@list 无需列表
					//创建一个搜素表单
					var form = $("<form>").attr({
							"class": "filterform",
							action: "#"
						}),
						input = $("<input>").attr({
							"class": "filterinput",
							type: "text"
						});
					$(form).append(input).appendTo(header);
					$(input).change(function() {
						var filter = $(this).val();
						if(filter) {
							$matches = $(list).find("a:Contains(" + filter + ")").parent();
							$("li", list).not($matches).slideUp();
							$matches.slideDown();
						} else {
							$(list).find("li").slideDown();
						}
						return false;
					}).keyup(function() {
						$(this).change();
					});
				}
				$(function() {
					filterList($("#form"), $("#demo-list"));
				});
			})(jQuery);
		</script>
		<script type="text/javascript">
			jQuery("#jquery-accordion-menu").jqueryAccordionMenu();
		</script>
		<script type="text/javascript">
			$('#d1_1').click(function () {
				$('.d').hide();
				$('#d1_2').show();
			});
			$('#d2_1').click(function () {
				$('.d').hide();
				$('#d2_2').show();
			});
			$('#d3_1').click(function () {
				$('.d').hide();
				$('#d3_2').show();
			});
			$('#d4_1').click(function () {
				$('.d').hide();
				$('#d4_2').show();
			});
			$('#d5_1').click(function () {
				$('.d').hide();
				$('#d5_2').show();
			});
			$('#d6_1').click(function () {
				$('.d').hide();
				$('#d6_2').show();
			});
			$('#d7_1').click(function () {
				$('.d').hide();
				$('#d7_2').show();
			});
			$('#d8_1').click(function () {
				$('.d').hide();
				$('#d8_2').show();
			});
			$('#d9_1').click(function () {
				$('.d').hide();
				$('#d9_2').show();
			});
			$('#d10_1').click(function () {
				$('.d').hide();
				$('#d10_2').show();
			});
			$('#d11_1').click(function () {
				$('.d').hide();
				$('#d11_2').show();
			});
			$('#d12_1').click(function () {
				$('.d').hide();
				$('#d12_2').show();
			});
			$('#d13_1').click(function () {
				$('.d').hide();
				$('#d13_2').show();
			});
			$('#d14_1').click(function () {
				$('.d').hide();
				$('#d14_2').show();
			});
			$('#d15_1').click(function () {
				$('.d').hide();
				$('#d15_2').show();
			});
			$('#d16_1').click(function () {
				$('.d').hide();
				$('#d16_2').show();
			});
			$('#d17_1').click(function () {
				$('.d').hide();
				$('#d17_2').show();
			});
			$('#d18_1').click(function () {
				$('.d').hide();
				$('#d18_2').show();
			});
			$('#d19_1').click(function () {
				$('.d').hide();
				$('#d19_2').show();
			});
			$('#d20_1').click(function () {
				$('.d').hide();
				$('#d20_2').show();
			});
			$('#d21_1').click(function () {
				$('.d').hide();
				$('#d21_2').show();
			});
			$('#d22_1').click(function () {
				$('.d').hide();
				$('#d22_2').show();
			});
			$('#d23_1').click(function () {
				$('.d').hide();
				$('#d23_2').show();
			});
		</script>
	</body>

</html>